from lmdb import *
import lmdb
lmdb.run()
tasks = session.query(Task).filter(Task.duedate!=None)
for t in tasks:
    t.startdate = t.duedate
    t.duedate = None
    
session.commit()
